package com.acme;

public class Arrays {
	public static void main(String[] args) {
		int[] array = new int[5];
		
		System.out.println(array[2]);
		
		for (int i = 0; i < array.length; i++) {
			array[i] = i + 1;
		}
		
		System.out.println(array.length);
		
		System.out.println(array[5]);
		// Error: array index is out of bounds,
		// index can only take on values 0..4
	}
}